package com.ozo.cloud.manage.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;

import com.ozo.cloud.common.database.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 权限
 * </p>
 *
 * @author qiangesoft
 * @since 2024-07-11
 */
@Getter
@Setter
@TableName("sys_permission")
public class SysPermission extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 上级id
     */
    private Long parentId;

    /**
     * 权限类型：menu-菜单 iframe-iframe link-外链 button-按钮
     */
    private String type;

    /**
     * 名称
     */
    private String title;

    /**
     * 图标
     */
    private String icon;

    /**
     * 路由
     */
    private String route;

    /**
     * 组件
     */
    private String component;

    /**
     * 编码
     */
    private String code;

    /**
     * 排序号
     */
    private Integer orderNum;

    /**
     * 菜单隐藏
     */
    private Boolean hidden;

    /**
     * 标签固定
     */
    private Boolean affix;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态：1-启用 0-禁用
     */
    private String status;

    /**
     * 逻辑删除
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Boolean delFlag;
}
